package com.zzyl.controller.customer;

import com.zzyl.base.ResponseResult;
import com.zzyl.dto.MemberLoginDTO;
import com.zzyl.service.CustomerUserLoginService;
import com.zzyl.vo.MemeberVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "小程序")
@RestController
public class CustomerUserLoginController {
    @Autowired
    private CustomerUserLoginService customerUserLoginService;
    @PostMapping("/customer/user/login")
    public ResponseResult<MemeberVo> login(@RequestBody   MemberLoginDTO  dto){
        MemeberVo VO = customerUserLoginService.login(dto);
        return ResponseResult.success(VO);
    }

}
